﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLGPS;

public partial class UserControls_ctlCamion : System.Web.UI.UserControl
{
    public Vehiculo  Camion
    {
        get { return (Vehiculo )Session[this.ClientID+ "Camion"]; }
        set { Session[this.ClientID + "Camion"] = value; Mostrar(); }
    }

    private void Mostrar()
    {
        if (Camion != null)
        {
            lblPatente.Text = Camion.Patente; 
        }
    }               
               

    protected void Page_Load(object sender, EventArgs e)
    {

    }
}